package site.lanmushan.quiz.api.service;

import site.lanmushan.common.query.service.IBaseService;
import site.lanmushan.quiz.api.ao.SubmitAnswerAo;
import site.lanmushan.quiz.api.entity.QuizTbQuestionAnswerRecord;
import site.lanmushan.quiz.api.vo.ExamQuestionListVo;
import site.lanmushan.quiz.api.vo.QuestionAnswersVo;

import java.util.List;

/**
 * ( QuizTbQuestionAnswerRecord)表服务接口
 *
 * @author $author
 * @since 2020-06-14 21:15:05
 */
public interface IQuizTbQuestionAnswerRecordService extends IBaseService<QuizTbQuestionAnswerRecord> {
    /**
     * 提交答案
     * @param entityAo
     */
    void doSubmitAnswer(SubmitAnswerAo entityAo);
    List<ExamQuestionListVo> selectExamQuestionListByBankCodeAndExamId(String questionBankCode, Long examId);

    QuestionAnswersVo selectQuestionAndOptionsById(Long id, Long examId);
}